home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d3
/
pctyp2_c.arc
/
PCTDOC1.EXE
/
lha
/
CHAP22.TXT
< prev
next >
Wrap
Text File
|
1989-04-21
|
10KB
|
225 lines
subject: REFORMATTING
overview: Reformatting is the process of adjusting the text
in paragraphs to eliminate "holes" which may have been
introduced through editing or changing Tabs, and of
justifying the margins of the text. You can also
reformat an area which is "block" highlighted in which
case you can adjust the left and right margins "on the
fly".
Justification can be:
(1) LEFT - even left margin with ragged right
(2) RIGHT - even right margin with ragged left
(3) BLOCK - even left and right margins
(4) CENTER - centering each line of text within the margins.
Reformatting can be accomplished by:
(1) pressing Ctrl R which will left justify the
paragraph in which the cursor is located or
reformat the highlighted text in which the cursor
is located.
(2) accepting the "Reformat now to new settings?"
option provided after Tabs redefinition.
(3) selecting the "(R)eformat" option in the
Highlight Options menu.
(4) placing reformatting directives in a file being
"mail-merged".
(5) Selecting the "(R)eformat" option in the Main
Menu.
In this discussion, we assume you begin the reformat
operation via (5). Selecting this option causes the
menu below to be displayed:
┌─────────────────┐
│REFORMAT options:│
╞═════════════════╡
│ (A)ll │
│ (T)o end │
│ (P)aragraph │
│ (H)ighlight │
│ e(X)it │
└─────────────────┘
In general, reformatting is accomplished in a
paragraph by paragraph manner and considers any
changes in Tabs and margins which may be encountered.
218
subject: REFORMATTING OPTIONS
(A)ll: This option will reformat the entire file.
(T)o end: This option will reformat the file beginning with the
paragraph in which the cursor is located and
proceeding to the end of the file.
With both of the above options, the "No reformat"
Special Lines are respected. If you have Tab lines
imbedded in your text, the reformatting process will
take into account the changes in the Tab and margin
definitions.
(P)aragraph: This option will only reformat the paragraph in which
the cursor is located when the option is selected.
(H)ighlight: This option only reformats the highlighted text area
within the file you are editing. (Reformatting with
sentence highlighting is not permitted.) If no area
is highlighted in the current file the message
╔═══════════════════════════╗
║ ║
║ Must mark area first. ║
║Press a key to continue ...║
║ ║
╚═══════════════════════════╝
is displayed.
When the highlighted area is marked with block
highlighting, and the type of justification is
selected (described below), a single line field is
displayed on your screen with an 'L' and an 'R'
located at the left and right edges of the block
highlighting. The Message Line reads:
Adjust new margins - Enter when done (Esc to exit)
This process permits you to redefine the area in which
the block highlighted text should be reformatted.
(You can also include an indent 'I' character in the
margin definition.) This is quite handy if you are
reformatting text within a box or table or if you want
to "squash" a section of text without having to imbed
new Tab lines in your text file.
In the example below, the highlighted area is shown as
a box at the left and the new margin definitions are
shown as L and R. The result is at the right.
L R
┌────────────────────────┐
│Squash this text to the │ Squash this text
│temporary margin setting│ to the temporary
└────────────────────────┘ margin setting
219
subject: REFORMATTING - JUSTIFICATION
discussion: Once the range of reformatting has been defined, the
type of justification to be performed on that range
must be determined. To do so, the following menu is
displayed:
┌─────────────────────┐
│REFORMAT types: │
╞═════════════════════╡
│ (C)enter text │
│ (L)eft justify text│
│ (R)ight justify text│
│ (B)lock justify text│
│ e(X)it │
└─────────────────────┘
(C)enter: Center justification will proceed from line to line
within the specified range and adjust each line so it
is equidistant from each margin. The line is centered
as it stands, i.e., no spaces are deleted or
inserted. Tab characters are replaced by spaces,
however.
(L)eft: Left justification determines the bounds of the
paragraph to be justified and then reformats the
paragraph.
To reformat the paragraph, left justification
eliminates "holes" and moves words from line to line
filling each line with as many words as will fit
within the margins. If Tab characters exist on the
line, the text is shifted to the next Tab stop. At
the end of each sentence, one or two spaces will be
inserted after the punctuation based upon the setting
of the "SNT_SPACE" toggle setting in the "(S)witches"
option of the Configuration Menu.
(R)ight: Right justification first performs the left
justification described above. Then, each line of the
paragraph is "shoved" to the right until the end of
its right-most word is at the right margin. Tab
characters are replaced by spaces.
(B)lock: Block justification first performs the left
justification described above. Then, Tabs are removed
and each line is filled with spaces until the first
character of the first word on the line is at the left
margin and the last character of the last word on the
line is at the right margin. These extra spaces are
inserted in as pleasing a manner as possible. If the
last line of a paragraph is significantly short of the
right margin, it will not be blocked.
220
subject: REFORMATTING EXAMPLES
discussion: The following paragraph, with the left and right
margins shown, is reformatted by each form of
justification. The results are as labeled.
┌──────────────────────────────────────────┐
│L R│
├──────────────────────────────────────────┤
│This is a sample paragraph │
│ which will be reformatted with │
│each of the four different │
│ types of justification. │
└──────────────────────────────────────────┘
center: ┌──────────────────────────────────────────┐
│ This is a sample paragraph │
│ which will be reformatted with │
│ each of the four different │
│ types of justification. │
└──────────────────────────────────────────┘
left: ┌──────────────────────────────────────────┐
│This is a sample paragraph which will be │
│reformatted with each of the four │
│different types of justification. │
└──────────────────────────────────────────┘
right: ┌──────────────────────────────────────────┐
│ This is a sample paragraph which will be│
│ reformatted with each of the four│
│ different types of justification.│
└──────────────────────────────────────────┘
block: ┌──────────────────────────────────────────┐
│This is a sample paragraph which will be│
│reformatted with each of the four│
│different types of justification. │
└──────────────────────────────────────────┘
221